Just a list of MembershipBean objects, with a get method to allow retrieving them by name


Properties

Name Returns Notes Example
groupByOrg Map
first MembershipBean
last MembershipBean

Methods

Name Returns Notes Example
hasGroup ( groupName ) boolean
filterByOrg ( orgId ) MembershipList Return a new list which is this list filtered so it only contains memberships to the organisation with the given orgid
- $user.allMemberships().filterByOrg("ACMELTD")
filterByOrgType ( orgType ) MembershipList Return a new list which is this list filtered so it only contains memberships to the organisation with the given orgTYpe
- $user.allMemberships().filterByOrgType("STORES")
filterByGroup ( groupName ) MembershipList Return a new list which is this list filtered so it only contains memberships to the given group
- $user.allMemberships().filterByGroup("admin")
filterByGroupFolder ( groupFolderName ) MembershipList
filterByGroupType ( groupType ) MembershipList

Ask a question, or offer an answer